package pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Department entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Department implements java.io.Serializable {

	// Fields

	private Integer dpid;
	private Departmenttype departmenttype;
	private Department department;
	private String dpname;
	private String dpnumber;
	private String dpdes;
	private String dpuser;
	private String dpgrade;
	private String workName;
	private String workGrade;
	private String upperDes;
	private String workDes;
	private Set departments = new HashSet(0);
	private Set departmentattenddetailses = new HashSet(0);
	private Set persions = new HashSet(0);
	private Set workunits = new HashSet(0);
	private Set departtargets = new HashSet(0);

	// Constructors

	/** default constructor */
	public Department() {
	}

	/** minimal constructor */
	public Department(Departmenttype departmenttype, String dpnumber,
			String dpuser) {
		this.departmenttype = departmenttype;
		this.dpnumber = dpnumber;
		this.dpuser = dpuser;
	}

	/** full constructor */
	public Department(Departmenttype departmenttype, Department department,
			String dpname, String dpnumber, String dpdes, String dpuser,
			String dpgrade, String workName, String workGrade, String upperDes,
			String workDes, Set departments, Set departmentattenddetailses,
			Set persions, Set workunits, Set departtargets) {
		this.departmenttype = departmenttype;
		this.department = department;
		this.dpname = dpname;
		this.dpnumber = dpnumber;
		this.dpdes = dpdes;
		this.dpuser = dpuser;
		this.dpgrade = dpgrade;
		this.workName = workName;
		this.workGrade = workGrade;
		this.upperDes = upperDes;
		this.workDes = workDes;
		this.departments = departments;
		this.departmentattenddetailses = departmentattenddetailses;
		this.persions = persions;
		this.workunits = workunits;
		this.departtargets = departtargets;
	}

	// Property accessors

	public Integer getDpid() {
		return this.dpid;
	}

	public void setDpid(Integer dpid) {
		this.dpid = dpid;
	}

	public Departmenttype getDepartmenttype() {
		return this.departmenttype;
	}

	public void setDepartmenttype(Departmenttype departmenttype) {
		this.departmenttype = departmenttype;
	}

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getDpname() {
		return this.dpname;
	}

	public void setDpname(String dpname) {
		this.dpname = dpname;
	}

	public String getDpnumber() {
		return this.dpnumber;
	}

	public void setDpnumber(String dpnumber) {
		this.dpnumber = dpnumber;
	}

	public String getDpdes() {
		return this.dpdes;
	}

	public void setDpdes(String dpdes) {
		this.dpdes = dpdes;
	}

	public String getDpuser() {
		return this.dpuser;
	}

	public void setDpuser(String dpuser) {
		this.dpuser = dpuser;
	}

	public String getDpgrade() {
		return this.dpgrade;
	}

	public void setDpgrade(String dpgrade) {
		this.dpgrade = dpgrade;
	}

	public String getWorkName() {
		return this.workName;
	}

	public void setWorkName(String workName) {
		this.workName = workName;
	}

	public String getWorkGrade() {
		return this.workGrade;
	}

	public void setWorkGrade(String workGrade) {
		this.workGrade = workGrade;
	}

	public String getUpperDes() {
		return this.upperDes;
	}

	public void setUpperDes(String upperDes) {
		this.upperDes = upperDes;
	}

	public String getWorkDes() {
		return this.workDes;
	}

	public void setWorkDes(String workDes) {
		this.workDes = workDes;
	}

	public Set getDepartments() {
		return this.departments;
	}

	public void setDepartments(Set departments) {
		this.departments = departments;
	}

	public Set getDepartmentattenddetailses() {
		return this.departmentattenddetailses;
	}

	public void setDepartmentattenddetailses(Set departmentattenddetailses) {
		this.departmentattenddetailses = departmentattenddetailses;
	}

	public Set getPersions() {
		return this.persions;
	}

	public void setPersions(Set persions) {
		this.persions = persions;
	}

	public Set getWorkunits() {
		return this.workunits;
	}

	public void setWorkunits(Set workunits) {
		this.workunits = workunits;
	}

	public Set getDeparttargets() {
		return this.departtargets;
	}

	public void setDeparttargets(Set departtargets) {
		this.departtargets = departtargets;
	}

}